#!/usr/bin/env node
//src/index.ts
import { Command } from "commander";
const clc = require('cli-color');
import { createComponent } from "./commands/createComponent";
import { createHook } from "./commands/createHook";

const program = new Command();

console.log(clc.bgYellow.green("欢迎使用 r-cli"));

program
  .version("1.0.0")
  .description("一个 Vue 3 + TS 组件库和 Hooks 生成工具");

program
  .command("create:component <name>")
  .description("创建 Vue 组件")
  .action(createComponent);

program
  .command("create:hook <name>")
  .description("创建 Vue Hook")
  .action(createHook);

program.parse(process.argv);
